package com.ybkj.daijia.api.thirdpardCommon;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * @author zhyu
 * @date 2019/12/27 13:48
 * 为第三方接口建立一个标准的返回结果集
 */
@ToString
public class ThirdPartResult<T> {

    public static final String UNCONNECTED = "-1";

    public ThirdPartResult() {
        statusCode = UNCONNECTED;
    }

    @Getter@Setter
    private String statusCode;
    private boolean success;
    @Getter@Setter
    private String message;
    @Getter@Setter
    private T data;

    public boolean getSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }
}
